package com.glq1218.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.glq1218.article.bo.AddArticleBO;
import com.glq1218.article.bo.ArticleBO;
import com.glq1218.article.bo.QueryArticleBO;
import com.glq1218.article.bo.UpdateArticleBO;
import com.glq1218.article.entity.Article;
import com.glq1218.domain.IntervalStr;
import com.glq1218.domain.PaginationParam;
import com.glq1218.domain.PaginationResult;
import com.glq1218.domain.SortParam;

import java.io.Serializable;

/**
 * @author glq1218
 * @description TODO
 * @since 2023/4/23 9:46
 */
public interface ArticleService extends IService<Article> {
    PaginationResult<ArticleBO> queryArticleList(PaginationParam paginationParam, SortParam sortParam, IntervalStr intervalStr, QueryArticleBO queryArticleBO);

    ArticleBO getArticleById(Serializable id);

    String updateArticle(UpdateArticleBO updateArticleBO);

    String addArticle(AddArticleBO addArticleBO);
}
